package org.example.demo1.service;


import org.example.demo1.common.ResponseData;
import org.example.demo1.domain.GoodsInfo;

import java.util.List;

public interface IGoodsService {
    ResponseData<GoodsInfo> addGoods(GoodsInfo goodsInfo);

    ResponseData<GoodsInfo> updateGoods(GoodsInfo goodsInfo);

    ResponseData<GoodsInfo> deleteGoodsByGoodsId(Integer goodsId);

    ResponseData<List<GoodsInfo>> searchGoodsByName(String name);

    ResponseData<List<GoodsInfo>> searchGoodsById(Integer goodsId);

    ResponseData<List<GoodsInfo>> pageQuery(int pageNum, int pageSize, String classifyId);
}
